package com.platform.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.platform.base.PageUtil;
import com.platform.base.mvc.IBaseMapper;
import com.platform.dto.User;
import com.platform.exception.BizException;
/**
 * 
 * <p> Title: Ygxx Mapper</p>
 * <p> Description: 记录部门员工的信息 </p>
 * <p> Copyright: Copyright (c) 2019 </p>
 * <p> Company: </p>
 *
 * @author wys
 * @version 1.0
 */
@Mapper
public interface UserDAO<T> extends IBaseMapper<T> {
    public User validateUserName(String userName) throws BizException;
    public User validateUserNameAndPwd(Map<?,?> map) throws BizException;
    
    public User selectUserByOpenId(String openId);
    
    /**
     * @Title: saveLoginErrorCount   
     * @Description:  保存错误登录次数
     * @author: <a href="mailto:15909910367@163.com">吴先生</a>      
     * void
     */
    public void saveLoginErrorCount(Object userCode);
    /**
     * 
     * @Title: savePasswordErrorLastTime   
     * @Description: 保存最后一次输错密码时间
     * @author: <a href="mailto:15909910367@163.com">吴先生</a>      
     * void
     */
    public void savePasswordErrorLastTime(Object userCode);
    /**
     * @Title: saveLastLoginTime   
     * @Description: 最后登录时间  
     * @author: <a href="mailto:15909910367@163.com">吴先生</a>      
     * void
     */
    public void saveLastLoginTime(Object userCode);
    
    /**
     * @Title: selectUserListByRole   
     * @Description: 根据用户角色查询用户信息 
     * @param pageUtil      
     * void
     */
    public List<User> selectUserListByRole(PageUtil pageUtil);
}
